<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">
      
<ui:composition>
	<h:inputHidden value="#{timeBean.time.id}" />
	<h:panelGrid columns="3">
		<h:outputLabel value="#{msg.novo_time_nome}: " for="nome" />
		<h:inputText id="nome" value="#{timeBean.time.nome}" required="true"
		        requiredMessage="#{msg.novo_time_nome_obrigatorio}"/>
		<h:message for="nome" />
		
		<h:outputLabel value="#{msg.novo_time_tecnico}: " for="tecnico" />
		<h:inputText id="tecnico" value="#{timeBean.time.tecnico}" required="true"
		        requiredMessage="#{msg.novo_time_tecnico_obrigatorio}" />
		<h:message for="tecnico" />
		
		<h:outputText />
		<h:commandButton value="#{msg.novo_time_btn_cadastrar}">
			<f:ajax event="click" execute="@form" listener="#{timeBean.adiciona}" 
			        render="@all" />
		</h:commandButton>
	</h:panelGrid>
</ui:composition>
</html>